package com.warehouse.config;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.io.File;

/**
 * @author 卓汉杰
 * */
@Component
public class TaskTimer {



    /**每天凌晨4点15触发垃圾回收*/
	@Scheduled(cron = "0 15 4 * * ?")
    public void myTimes(){


        System.out.println("触发垃圾回收");


    }



    
}
